s=input()
lst=s.split()
maxV=int(lst[0])
try:
    while True:
        lst=s.split()
        for i in lst:
            maxV=max(maxV,int(i))
        s=input()
except:
    pass
print(maxV)